package com.vains.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 资源服务器信息
 *
 * @author vains
 * @date 2021/4/4 22:31
 */
@Data
@Component
@ConfigurationProperties(prefix = ResourceProperties.PREFIX)
public class ResourceProperties {

    static final String PREFIX = "resource";

    /**
     * 当前资源服务器的资源id
     *      (默认是authorizeResource)
     */
    private String resourceId = "authorizeResource";

    /**
     * 白名单(白名单中接口无需登录便可访问)
     */
    private List<String> whiteList;

}
